used enums, changed around globals, gonna sed soon