tiny code simplificiation