-now it is working correctly