added booleans, hate javascript