correcting errors pointed out by @abineshtd