work version without views