isnt the best solution, but i works for now.