can you split this (and the next function) into lines for better readability?