removed hard coding

greedy
memo