upadted rake and fixed category error