draw square with shift