moved print definition to server side