squart funtion