corrections for blit function