function not working properly yet
This is a function under development, still not fully implemented.