cleaned up
wrong implementation, but it looks kinda cool..