added initialization
smooth mouse control