wrong type in variable initialisation