working on filp (working but heavily bugged)