not correct but doesn't crash. Algo logic needs work!!!