Also these if-else-blocks could be provided in own methods