added some socket instructions plus modulo