small syntax bugs fixed