Define attribute on correct place