tiny refatoring