semi working code action with wrong place