put positions into classes