this code block could be abstracted in a function