fixed conv and added ref
wrapper function for test calls