now ready and gives correct answer