commented even better solution