This code seems useless...I should test it though