fixed bug with all method