working cut function.. sooooo much buuuugggggzzzzz! OMG! Haaaaalp!