change padding function to use bzero