few more functions
fixing some errors