fixing some errors..