removed bitmask because it was overkill