function makes code look cleaner