Finally solved phew