fixing some basic errors