added elseifs to php bc shit is slow