adapting two comments from hyunsik